<?php
include_once "../function/common.php";
$a=array(111,"222",'name'=>'张三','age'=>18,1000=>333,444);//早期
//p($a,false);
$a2=['address'=>'zz','school'=>'水院'];//现代表示数组的方法
p($a,$a2,$a[1],$a2['address']);
//数组中key值的类型转换
$array= array(
     1 =>'a',
    '1' =>'b',
    1.5 =>'c',
    -1 =>'d',
    '01' =>'e',
   '1.5' =>'f',
    true =>'g',
    false =>'h',
    ''=>'i',
    null=>'j',
    'k',
    2=>'1',
);
p($array);
